@import '/src/theme/mixins/amixin';
.feature-cover {
  &:before {
    content: '';
    height: 16px;
    left: 10px;
    position: absolute;
    top: 16px;
    width: 1px;
    z-index: 1;
    opacity: 0;
    @include transition(all, 0.4s, ease);
  }
  &:after {
    content: '';
    height: 1px;
    left: 10px;
    position: absolute;
    top: 16px;
    width: 16px;
    opacity: 0;
    @include transition(all, 0.4s, ease);
  }
  .feature-inner {
    &:before {
      content: '';
      height: 16px;
      right: 10px;
      position: absolute;
      bottom: 16px;
      width: 1px;
      z-index: 1;
      opacity: 0;
      @include transition(all, 0.4s, ease);
    }
    &:after {
      content: '';
      height: 1px;
      right: 10px;
      position: absolute;
      bottom: 16px;
      width: 16px;
      opacity: 0;
      @include transition(all, 0.4s, ease);
    }
  }
  .btns {
    .mat-icon {
      line-height: 40px;
    }
    @include middle-center();
    > a {
      display: flex;
      justify-content: center;
      align-items: center;
      height: 40px;
      width: 40px;
      line-height: 40px;
      font-size: 16px;
      @include scale(0);
      @include transition(all, 0.4s, ease);
      @include border-radius(3px, 3px, 3px, 3px);
      margin-right: 10px;
      &:last-child {
        margin-right: 0;
      }
    }
  }
  .feature-inner-ling {
    position: relative;
    display: block;
    overflow: hidden;
    border-top-left-radius: 2px;
    border-top-right-radius: 2px;
    &:before {
      content: '';
      height: 100%;
      left: -15%;
      position: absolute;
      top: 0;
      width: 130%;
      @include transition(all, 0.4s, ease);
    }
    &:after {
      width: 100%;
      height: 100%;
      position: absolute;
      top: 0;
      left: 0;
      content: '';
      opacity: 0;
      @include transition(all, 0.4s, ease);
    }
    .title {
      position: absolute;
      bottom: 0;
      text-align: center;
      display: block;
      box-sizing: border-box;
      width: 100%;
      opacity: 0;
      @include transition(all, 0.4s, ease);
    }
  }
  &:hover {
    &:before,
    &:after {
      opacity: 1;
      @include transition(all, 0.4s, ease);
    }
    .feature-inner {
      &:before,
      &:after {
        opacity: 1;
        @include transition(all, 0.4s, ease);
      }
    }
    .feature-inner-ling {
      .title {
        opacity: 1;
        z-index: 10;
        @include transition(all, 0.4s, ease);
      }
    }
    .btns {
      > a {
        @include scale(1);
        @include transition(all, 0.4s, ease);
        &:not([class*='download']):hover {
          z-index: 1;
          @include transform(45deg, 1.2, 0, 0);
          @include transition(all, 0.4s, ease);
        }
      }
    }
    .feature-inner-ling:after {
      opacity: 0.8;
      @include transition(all, 0.4s, ease);
    }
  }
}
img {
  width: 100%;
  height: auto;
}

.feature-float {
  .btns {
    position: absolute;
    right: 10px;
    top: 10px;
    z-index: 10;
    display: flex;
    flex-direction: column;
    opacity: 0;
    transition: all 0.5s ease;
    transform: translateX(100px);
    .btn {
      height: 36px;
      width: 36px;
      border-radius: 50%;
      transition: all 0.3s;
      font-weight: 600;
      padding: 0.375rem 0.75rem;
      display: flex;
      justify-content: center;
      align-items: center;
      margin-bottom: 0.8rem;
      box-sizing: border-box;
      ::ng-deep {
        .mat-icon {
          height: 16px !important;
          width: 16px !important;
          font-size: 16px !important;
          line-height: 16px !important;
        }
      }
    }
  }
  .title {
    position: absolute;
    bottom: 0;
    text-align: center;
    display: block;
    box-sizing: border-box;
    left: 50%;
    transform: translateX(-50%);
    font-size: 12px;
    border-radius: 12px;
    width: auto;
    opacity: 0;
    @include transition(all, 0.4s, ease);
  }
  &:hover {
    .btns {
      opacity: 1;
      transform: translateX(0px);
    }
    .feature-inner-ling {
      .title {
        opacity: 1;
        z-index: 10;
        bottom: 2px;
        @include transition(all, 0.4s, ease);
      }
    }
  }
}
